/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.user.comment.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.user.comment.model.UserScoreDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author lhd
 * @date 2020-05-25 15:31:02
 */
public interface UserScoreDetailMapper extends BaseMapper<UserScoreDetail> {

    /**
     * 查询有积分过期的用户
     * @param expireTime 过期时间
     * @return 积分过期列表
     */
    List<UserScoreDetail> listExpireScoreDetail(@Param("expireTime") DateTime expireTime);

    /**
     * 修改状态为0的积分明细为过期状态
     * @param dateTime 过期时间
     */
    void updateExpireScoreDetail(@Param("expireTime") DateTime dateTime);
}
